package com.ffcs.oss.portal.server.admin.controller;

import com.ffcs.oss.portal.server.admin.domain.po.AdminUserDO;
import com.ffcs.oss.portal.server.admin.service.AdminUserService;
import com.ffcs.oss.starter.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Tag(name = "管理后台 - 用户")
@RestController
@RequestMapping("/system/user")
@Validated
public class UserController {

    @Resource
    private AdminUserService userService;

    @GetMapping("/test")
    public CommonResult<List<AdminUserDO>> test() {
        List<AdminUserDO> adminUserDOS = userService.queryUser();
        return CommonResult.success(adminUserDOS);
    }

}
